package com.pyb.java.commonutil.utils;

import android.app.Application;

import com.pyb.java.commonutil.image.GlideImageLoader;
import com.pyb.java.commonutil.image.ImageDisplayLoader;

public class AppUtils {
    private static AppUtils instance;
    private Application app;
    public ImageDisplayLoader loader;

    public static AppUtils getInstance() {
        if (instance == null) {
            synchronized (AppUtils.class) {
                if (instance == null) {
                    instance = new AppUtils();
                }
            }
        }
        return instance;
    }

    public AppUtils() {
        loader = new GlideImageLoader();
    }

    public void setApp(Application app) {
        this.app = app;
    }

    public Application getApp() {
        return app;
    }
}
